package com.cunzai.blog.application.auth.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cunzai.blog.common.PO.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT COUNT(*) > 0 FROM user WHERE username = #{userName}")
    Boolean existsByUsername(String userName);
}
